<template>
	<view class="card">
		<view class="left">
			<view class="amount-area">
				<text class="price">￥10</text>
				<text class="condition">满200元可用</text>
			</view>
		</view>
		<view class="right">
			<text class="description">适用/仅限于XX加油站使用</text>
			<view class="date-area">
				<text class="date">2020.04.11至2020.05.11</text>
				<button class="button">领取</button>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {

			}
		},

	}
</script>

<style>
	.card {
		display: flex;
		background-color: #fff;
		border-radius: 30rpx;
		box-shadow: 0 5rpx 10rpx rgba(0, 0, 0, 0.1);
		overflow: hidden;
		margin: 15rpx;
		transition: transform 0.2s;
	}

	.card:hover {
		transform: scale(1.02);
	}

	.left {
		background-color: #3A79FF;
		color: #fff;
		padding: 30rpx;
		text-align: center;
		/* 中心对齐 */
		min-width: 100rpx;
	}

	.amount-area {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.price {
		font-size: 80rpx;
		font-weight: bold;
	}

	.condition {
		font-size: 30rpx;
		margin-top: 5rpx;
	}

	.right {
		flex: 1;
		padding: 20rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		background-color: #f9f9f9;
	}

	.description {
		font-size: 25rpx;
		color: #666;
		margin-bottom: 5rpx;
	}

	.date-area {
		display: flex;
		align-items: center;
		/* 垂直居中对齐 */
	}

	.date {
		font-size: 23rpx;
		color: #f00;
		margin-right: 10rpx;
		/* 时间与按钮间距 */
	}

	.button {
		background-color: #3A79FF;
		color: #fff;
		padding: 5rpx 13px;
		/* 调整按钮大小 */
		border: none;
		border-radius: 18rpx;
		text-align: center;
		cursor: pointer;
		font-size: 25rpx;
		/* 按钮文本大小 */
		transition: background-color 0.2s;
		margin-right: 10rpx;

	}

	.button:hover {
		background-color: #2a5dc8;
	}
</style>